import { Pipe, PipeTransform } from '@angular/core';
import * as MarkdownIt from 'markdown-it'
@Pipe({
  name: 'md'
})
export class MdPipe implements PipeTransform {

  transform(value: any, args?: any): any {
    var md = new MarkdownIt();
    return md.render(value);
  }

}
